MySQL常用指令,java,php程序员,数据库工程师必备。程序员小冰常用资料整理MySQL common commands (for reference)The most common display commands are:1. Display the list of databases.show databases;2. Display the data table in the library:Use MySQL;Show tables;3, display the
Five methods to change the mysql database name: 1. RENAMEDATABASEdb_nameTOnew_db_name .. This syntax is added in mysql5.1.7 and removed in 5.1.23. Data may be lost. Or don't use it. See: dev.mysql.comdocrefman5.1enrename-database.html 2
Five methods
Mysql commands are often used by everyone, but few of you can sort them out. there are not many projects recently. you can take a moment to summarize the mysql database commands. if you need them, refer to section 1. connect to Mysql.
Format:
Five ways to change MySQL database name:
1. RENAME DATABASE db_name to New_db_name
This one.. This syntax is added to the MySQL 5.1.7, 5.1.23 and removed. It is said that it is possible to lose data. It's better not to use it. See:
Five ways to change MySQL database name:
The code is as follows
Copy Code
1. RENAME DATABASE db_name to New_db_name
This one.. This syntax is added to the MySQL 5.1.7, 5.1.23 and removed.It is said that it is
Mysql-5-basic operations for data tables, mysql-5-basic operations1. create a table: Before using database database_name, create table name ();
For example, create an employee table tb_employee1 with the following structure:
Field name
Directory
· 1. Introduction to MySQL concepts
· II. MySQL configuration in Windows
· Configuration steps
· Start, stop, and uninstall the MySQL Service
· III. Basic Components of MySQL scripts
· IV. Data Types in MySQL
· Use the MySQL database
· Log
Henan College of Traditional Chinese Medicine
Course Design Report of MySQL Database Management
Title: Research and Implementation of MySQL Clusters
Completion date:2012January 1, December 31
Contents
1. Course Design overview 3
2. research
Nine. Cross-queryA cross-query can calculate the sum, average, count, or other sum of the data, which is calculated byTwo kinds of information are grouped: one appears on the left side of the table and the other appears at the top of the
Shortly before the interview, was asked to InnoDB engine table How to change the database name, then I only answered the MyISAM how to operate, by some details of the problem defeated, really fucked.If it represents MyISAM then you can go directly
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.